import request from '@/utils/request'

  // 添加挂号信息
export function addRegistration(data) {
    return request({
      url: '/service-docter/api/v1/Registration/addRegistration',
      method: "post",
      data: data,
    });
}

export function getRegistrationListById(id){
	return request({
		url: `/service-docter/api/v1/Registration/RegistrationList/${id}`,
		method: "get",
	});
}

export function getRegistrationById(regId){
	return request({
		url: `/service-docter/api/v1/Registration/getRegistrationById1/${regId}`,
		method: "get",
	});
}
// 挂号退费
export function	doReturn(regId) {
	return request({
	  url: `/service-docter/api/v1/Registration/doReturn/${regId}`,
	  method: "put",
	});
}
// 挂号作废
export function doInvalid(regId) {
    return request({
      url: `/service-docter/api/v1/Registration/doInvalid/${regId}`,
      method: "put",
    });
}
// 挂号收费
export function collectFee(regId) {
    return request({
      url: `/service-docter/api/v1/Registration/collectFee/${regId}`,
      method: "put",
    });
  }